home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / MorphOS / cvs-1.11.2 / source / amiga / smakefile < prev    next >
Encoding:
Makefile  |  2002-11-18  |  2.4 KB  |  86 lines

  1. #
  2. # $Id$
  3. #
  4. # :ts=4
  5. #
  6. # AmigaOS wrapper routines for GNU CVS, using the AmiTCP V3 API
  7. # and the SAS/C V6.58 compiler.
  8. #
  9. # Written and adapted by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  10. #                        Jens Langner <Jens.Langner@htw-dresden.de>
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25. #
  26.  
  27. TARGET = amiga.lib
  28.  
  29. # Programs
  30.  
  31. CC  = sc
  32. OML = oml
  33. CP  = copy
  34. RM  = delete quiet
  35.  
  36. # ignored warnings are:
  37. #  51 C++ comment detected                                 -- we agreed to use them
  38. #  61 undefined struct/union tag "tag-name"                -- in include files
  39. # 120 Integral type mismatch: possible portability problem -- should be used somewhen
  40. # 148 use of incomplete struct/union/enum tag "name"       -- in include files
  41. # 165 use of narrow type in prototype                      -- very unlikely portability problem
  42. # 178 indirect call without indirection operator           -- only old-style support
  43. # 212 item "name" already declared                         -- in include files
  44. # 306 .. function inlined                                  -- disturbs
  45.  
  46. # Compiler/Linker flags
  47.  
  48. CPU      =  68020
  49. WARN     =  WARN=ALL IGNORE=51,61,120,148,165,178,212,306
  50. INCDIRS  =  IDIR=/src IDIR=include IDIR=/amiga IDIR=netinclude IDIR=ssh
  51. CFLAGS   =  OPT OPTTIME OPTSCHEDULE CPU=$(CPU) UTILLIB COMMENTNEST STRUCTUREEQUIVALENCE \
  52.             STRINGMERGE NOSTACKCHECK $(WARN) $(INCDIRS) DEBUG=LINE
  53.  
  54. OBJS = amiga.o time.o _assert.o
  55.  
  56. #
  57.  
  58. default: $(TARGET)
  59.  
  60. # Default rule
  61.  
  62. .c.o:
  63.   @echo "*e[32mCompiling $*.c*e[0m"
  64.   @$(CC) $(CFLAGS) $<
  65.  
  66. #
  67.  
  68. $(TARGET): $(OBJS)
  69.   @echo "*e[32mLinking $*.lib*e[0m"
  70.   @$(OML) $@ r $(OBJS)
  71.  
  72. #
  73.  
  74. time.o : time.c
  75.   @echo "*e[32mCompiling $*.c*e[0m"
  76.   @$(CC) $(CFLAGS) params=both $<
  77.  
  78. # leaves TARGET
  79. clean:
  80.   -$(RM) $(OBJS)
  81.  
  82. #
  83. cleanall: clean
  84.   -$(RM) $(TARGET)
  85.  
  86.